home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-25 | 1.9 KB | 75 lines | [TEXT/MPS ] |
- # File: test.PPC.MrC.make
- # Target: test.PPC.MrC
- # Sources: test.c
-
- Makefile = :MPW_Support:test.PPC.MrC.make
-
- object_folder = ":MPW_Support:objects_PPC:"
-
- fsource = test.f
-
- csource = F2Cmain.c
-
- fobjs = {object_folder}'test.f.o'
-
- cobjs = {object_folder}'F2Cmain.c.o'
-
- objects = {fobjs} ∂
- {cobjs}
-
- PPCC = MrC
- PPCCOptions = -align power -i "{CIncludes}" -d MPW_CW_F2C -w off
-
- F2C = F2C
- F2COptions = -f -!i8 -A -E -ec -a -r8 -!R -w66
-
- PPCLink = PPCLink
- PPCLinkOptions = -d -c 'MPS ' -t 'MPST'
-
- test.PPC.MrC ƒ {objects} {Makefile}
- {PPCLink} {PPCLinkOptions} ∂
- {OBJECTS} ∂
- "{SharedLibraries}InterfaceLib" ∂
- "{SharedLibraries}StdCLib" ∂
- "{SharedLibraries}MathLib" ∂
- "{PPCLibraries}StdCRuntime.o" ∂
- "{PPCLibraries}PPCCRuntime.o" ∂
- "{PPCLibraries}PPCToolLibs.o" ∂
- "{F2CLibraries}"libI77.PPC.MrC ∂
- "{F2CLibraries}"libF77.PPC.MrC ∂
- -o test.PPC.MrC
-
- .f.o ƒ .f
- {F2C} {F2COptions} {Default}.f #compile the fortran and then compile the resulting C file.
- setfile -t "TEXT" -c "MPS " {default}.c
- {PPCC} {default}.c {PPCCOptions} ∂
- -o {targDir}{default}.f.o
-
-
- .c.o ƒ .c
- {PPCC} {default}.c {PPCCOptions} ∂
- -o {targDir}{default}.c.o
-
-
- # If your FORTRAN code has common blocks add common.c.o to the cobjs list
- # and then this rule should take care of it
- common.c ƒ {fobjs}
- setfile -t "TEXT" -c "MPS " ?+_com.c
- catenate ?+_com.c > {targDir}{Targ} #This puts all the common block files into one file for compiling.
- #The wild card lets us add common blocks to the fortran code
- #without having to change the makefile! The common block files all
- #end with _com.c
-
- {objects} ƒ {Makefile} #do a full rebuild if the makefile changes
-
- {object_folder} ƒ :
-
- {object_folder}'test.f.o' ƒ 'test.f'
-
- {object_folder}'F2Cmain.c.o' ƒ 'F2Cmain.c'
-
- {object_folder}'common.c.o' ƒ 'common.c'
-
- # makefile end
-
-